I believe i fixed the move functionality.

I think i got the moving to work fine now also added checking for out of
bounds blocks and as well as checking if the user has solved the puzzle.