updated classes

Classes for games
updated database js