moved gravity to player