added new file for player logic
Revert "added new file for player logic"

This reverts commit f7edac87a2abe63c25a5d7cfa3d6e14ce415e1b5.
Revert "Revert "added new file for player logic""

This reverts commit de336ff46c3d27742967e23d2a3d3bbd2020b2a3.
added nicer object management