Thank you for your feedback. The trial and error approach is part of the game design.You can use the undo button (upper left corner) or the "Z" button on keyboard in order to undo a movement/action.Also using a key from the game menu you can skip a level (unlock the next one), and then you can try to gain the key back later solving the level. We have 5 keys in total.