Added dynamic attack system

Also heavily cleaned up player code