Converted codes for characters and fixed some problems in floor