added first implementation of checkMove, IN COMMENTS due to possible
NullPointerException