beginning of js game logic, fixed typo on view, updated css for tile)