Code rewrite of Enemies