renamed Games.js
added states and directions into game class