Constrain player to canvas boundaries