bug fix in triangleContains and added arrow key control

bug fix in triangleContains and added arrow key control for the player
sprite.