added collision with endpoints for lines ; press space to enable collisions on blocks