Integrate beat detection in game
Fix minor bug
Improve beat detection