Started to code collision detection