added collision function i main program

- changed player to rectMode(CENTER)