moved collideBox() function from Player to Square, added some comments