Segfault fixed when new map is generated during a collision
Input movement modified -> caused an influence on speed of movement if a laot of input -> need to be better implemented for the future