modularizing chess piece move logic and upgraded to android 4.4