Update player.cpp

Added collisioncheck function, which returns 1 if collision occurs, or 0 if none.