8-puzzle - Functions not working correctly

Move('left');'left' will fit in a 32 bit int, but not a 16.
'right' won't fit into either.