added player obj and makeing move func