adding space bar fire key, restricting player movement to left and right