Fixed bug in player collision