fixed UI and game logic

Implement the attack method called every 1/10 from the second and
refactored the properties from int to long due future issues.