Fix coin/player overlap

The code were not identifying if the objects coliding were coins and players.
Also adding part of the level generation code