I am making a chess implementation on HTML5. The game has a feature to determine available moves of a piece on tapping.
For example, tapping the the rook at a1 sh