simple approach to switch between player and enemy