Corrected allocation of memory for (int **)
Added return statements after swapping of numbers
Added definition of constants of moves
Added function getLastMove

Function returns integer representation of last move. It searches for
space and then "looks" at all available direction in previous state to
find out, where it was.
Minor changes

Corrected allocation of memory everywehere
Updated funtion createNewState (now its parameter is pointer)
Added checking of last move before adding it to priority queue
Variable rows was made global