Joined freeCell and EnemyCell in one method

also converted grid from [x, y] to vector [x + y*width]. some other
minor changes