restructired piece.lua and king.lua to have listener and touch function outside the constructor so the AI can use the same calculate move functions. Calculate moves and showmoves now in different functions